package com.extension.company.view.my.localorder.localorderfragment;

import android.content.Context;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.extension.company.admin.R;
import com.extension.company.model.entity.SameCityOrderAllBean;
import com.extension.company.common.mvc.BaseFragment;
import com.extension.company.view.my.localorder.adapter.LocalCityUnPayAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;


/**
 * 同城订单 ---待付款 fragment
 */
public class LocalCityOrderUnPayFragment extends BaseFragment {

	@BindView(R.id.un_pay_list)
	RecyclerView recyclerView;

	private Context context;
	private LocalCityUnPayAdapter adpter;
	List<SameCityOrderAllBean> list = new ArrayList<>();

	@Override
	public void onAttach(Context context) {
		super.onAttach(context);
		this.context = context;
	}


	@Override
	public void init() {
		recyclerView.setLayoutManager(new GridLayoutManager(context, 1));
		adpter = new LocalCityUnPayAdapter(context, list);
		recyclerView.setAdapter(adpter);


	}

	@Override
	public int getMainLayout() {
		return R.layout.fragment_fragmentunpay_list;
	}

	public static LocalCityOrderUnPayFragment newInstance() {
		LocalCityOrderUnPayFragment fragment = new LocalCityOrderUnPayFragment();
		return fragment;
	}


}
